package com.wsj.service;

import java.util.List;
import java.util.Map;

import com.wsj.util.exception.BusinessException;
import com.wsj.util.page.PageResultSet;
import com.wsj.web.subclass.displayBean.Magazine.MagazineClassExtendBean;
import com.wsj.web.vo.homeSite.MagazineClass;

public interface IMagazineClassServ {

	public void add(MagazineClass magazineClass) throws BusinessException;
	
	public void delete(MagazineClass magazineClass) throws BusinessException;
	
	public void update(MagazineClass magazineClass) throws BusinessException;
	
	public MagazineClass loadById(Integer id) throws BusinessException;
	
	public MagazineClass loadByNameAndNameId(String name,Integer NameId) throws BusinessException;
	
	public boolean checkName(String name,Integer nameId) throws BusinessException;
	
	public List loadByNameId(Integer magazineNameId) throws BusinessException;
	
	public List loadByNameId(Integer magazineNameId,Integer top) throws BusinessException;
	
	public Map<String,String> loadBymagazineNameIdMap(Integer magazineNameId)throws BusinessException;
	
	public PageResultSet loadPageList(String qkName,String lmName,Short shanchu, Short istj,String beginDate,String endDate,Integer page,Integer pageSize) throws BusinessException;

	public List<MagazineClassExtendBean> loadMagazineClassAndNews(Integer magazineNameId)throws BusinessException;
	
}
